from pptx import Presentation
from pptx.chart.data import CategoryChartData, ChartData

def page1():
    slide = slides[0]
    shape1 = slide.shapes[0]
    tf = shape1.text_frame
    tf.paragraphs[0].runs[0].text = '这是测试报表'
    shape2 = slide.shapes[1]
    tf = shape2.text_frame
    tf.paragraphs[0].runs[1].text = '2020-8-8'

ppt = Presentation('客户报表.pptx')
slides = ppt.slides
page1()
ppt.save('张三.pptx')

    

